package cn.stylefeng.guns.modular.gridsystem.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;


/**
 * 采集端样本管理
 *
 * @author ssy
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BizCollectionSampleManageParam extends BaseParam {

    /**
     * id
     */
    private Integer id;

    /**
     * 网关主键
     */
    @NotNull(message = "网关不能为空", groups = registerModel.class)
    private Integer gatewayId;

    /**
     * 网关编号
     */
    private String gatewayCode;

    /**
     * 网关通道
     */
    private String gatewayChannel;

    /**
     * 时间
     */
    private String createAt;

    /**
     * 期望ID编号
     */
    private String expectAccessToken;

    /**
     * 期望分组号
     */
    private String expectGroupId;

    /**
     * 文件
     */
    private Long fileId;

    /**
     * 网关主键
     */
    private String gatewayIds;

    /**
     * 附件
     */
    @NotEmpty(message = "附件不能为空", groups = registerModel.class)
    private String fileIds;

    /**
     * 故障名称
     */
    @NotEmpty(message = "故障名称不能为空", groups = registerModel.class)
    private String faultName;

    /**
     * 故障级别
     */
    @NotEmpty(message = "故障级别不能为空", groups = registerModel.class)
    private String failureLevel;

    /**
     * 通话号
     */
    private String channel;

    /**
     * 远程任务主键
     */
    private Long taskId;

    /**
     * 注册模型
     */
    public @interface registerModel {
    }

}
